package tx.common;

import cn.stimd.spring.beans.factory.annotation.Autowired;
import cn.stimd.spring.context.stereotype.Service;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;
    @Autowired
    private AccountDao accountDao;

    public void register(String name, String phone) {
        this.userDao.save(name, phone);
        this.accountDao.save(phone);
    }
}
